package com.qfedu.edu.iotserver.pay.utils;

import java.util.UUID;
import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author xiaobobo
 * @title: OrderUtils
 * @projectName payment
 * @description: TODO
 * @date 2022/4/26  10:48
 */
public class OrderUtils {

    private AtomicInteger atomicInteger=new AtomicInteger();

    public synchronized String getOrder(){

       String str= System.currentTimeMillis()+ UUID.randomUUID().hashCode()+atomicInteger.getAndIncrement()+"".trim();


       return str;




    }



}
